﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;
using KylinORM.Utils;

namespace KylinORM.CQRS.Publisher
{
    /// <summary>
    /// 异步模式命令
    /// </summary>
    public abstract class AsyncMessage : MessageBase, IMessage
    {
        /// <summary>
        /// 创建一个异步模式的命令
        /// </summary>
        public AsyncMessage()
            : base()
        {
        }
        /// <summary>
        /// 创建一个异步模式的命令，并指定命令名称
        /// </summary>
        /// <param name="messageName"></param>
        public AsyncMessage(string messageName)
            : base(messageName)
        {
        }

        #region IMessage 成员
        /// <summary>
        /// 命令类型
        /// </summary>
        public override EMessageType MessageType
        {
            get { return EMessageType.Async; }
        }
        #endregion

    }
}
